import request from '@/utils/request'

export default {
  getList(params) {
    return request({
      url: '/cost/List',
      method: 'get',
      params
    })
  },
  Query(data){
    return request({
      url: '/cost/queryBy',
      method: 'post',
      data
    })
  },
  QueryPur(data){
    return request({
      url: '/cost/queryBillBy',
      method: 'post',
      data
    })
  },
  addCor(data){
    return request({
      url: '/cost/addCor',
      method: 'post',
      data
    })
  },
  BillCorDel(id){
    return request({
      url: '/cost/corDel/'+id,
      method: 'post',
    })
  },
  billStatusfinish(data){
    return request({
      url: '/cost/billFinish/'+data,
      method: 'post',

    })
  },
  billStatusfinishback(data){
    return request({
      url: '/cost/billFinishback/'+data,
      method: 'post',

    })
  },
  getBillById(id) {
    return request({
      url: '/cost/getBillById/'+id,
      method: 'get'
    })
  }
}
